  /**
   * Generate time : 2016-05-05 11:22:20
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ck.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCKYXFA 
 * table comment : 演习方案主表 
 */
public class ZMCKYXFA extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdMiningName = " ";		/* 矿井名称*/
	private String fdMiningId = " ";		/* 矿井id*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdReportTime = " ";		/* 汇报时间*/
	private String fdReportPerson = " ";		/* 汇报人*/
	private String fdBeginTime = " ";		/* 开始时间*/
	private String fdEndTime = " ";		/* 结束时间*/
	private String fdYxName = " ";		/* 演习名称*/
	private String fdYxContent = " ";		/* 演习内容*/
	private String fdYxZj = " ";		/* 演习总结*/
	private String fdYxBm = " ";		/* 演习部门*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井id");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportPerson");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBeginTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("开始时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEndTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("结束时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYxName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("演习名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYxContent");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("演习内容");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYxZj");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("演习总结");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYxBm");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("演习部门");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCKYXFA() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	/**
	 * get the fdMiningId - 矿井id
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿井id
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdReportTime - 汇报时间
	 * @return the fdReportTime
	 */
	public String getFdReportTime() {
		return this.fdReportTime;
	}
	
	/**
	 * set the fdReportTime - 汇报时间
	 */
	public void setFdReportTime(String fdReportTime) {
		this.fdReportTime = fdReportTime;
	}
	/**
	 * get the fdReportPerson - 汇报人
	 * @return the fdReportPerson
	 */
	public String getFdReportPerson() {
		return this.fdReportPerson;
	}
	
	/**
	 * set the fdReportPerson - 汇报人
	 */
	public void setFdReportPerson(String fdReportPerson) {
		this.fdReportPerson = fdReportPerson;
	}
	/**
	 * get the fdBeginTime - 开始时间
	 * @return the fdBeginTime
	 */
	public String getFdBeginTime() {
		return this.fdBeginTime;
	}
	
	/**
	 * set the fdBeginTime - 开始时间
	 */
	public void setFdBeginTime(String fdBeginTime) {
		this.fdBeginTime = fdBeginTime;
	}
	/**
	 * get the fdEndTime - 结束时间
	 * @return the fdEndTime
	 */
	public String getFdEndTime() {
		return this.fdEndTime;
	}
	
	/**
	 * set the fdEndTime - 结束时间
	 */
	public void setFdEndTime(String fdEndTime) {
		this.fdEndTime = fdEndTime;
	}
	/**
	 * get the fdYxName - 演习名称
	 * @return the fdYxName
	 */
	public String getFdYxName() {
		return this.fdYxName;
	}
	
	/**
	 * set the fdYxName - 演习名称
	 */
	public void setFdYxName(String fdYxName) {
		this.fdYxName = fdYxName;
	}
	/**
	 * get the fdYxContent - 演习内容
	 * @return the fdYxContent
	 */
	public String getFdYxContent() {
		return this.fdYxContent;
	}
	
	/**
	 * set the fdYxContent - 演习内容
	 */
	public void setFdYxContent(String fdYxContent) {
		this.fdYxContent = fdYxContent;
	}
	/**
	 * get the fdYxZj - 演习总结
	 * @return the fdYxZj
	 */
	public String getFdYxZj() {
		return this.fdYxZj;
	}
	
	/**
	 * set the fdYxZj - 演习总结
	 */
	public void setFdYxZj(String fdYxZj) {
		this.fdYxZj = fdYxZj;
	}
	/**
	 * get the fdYxBm - 演习部门
	 * @return the fdYxBm
	 */
	public String getFdYxBm() {
		return this.fdYxBm;
	}
	
	/**
	 * set the fdYxBm - 演习部门
	 */
	public void setFdYxBm(String fdYxBm) {
		this.fdYxBm = fdYxBm;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdReportTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportTime")), fdReportTime));
		setFdReportPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportPerson")), fdReportPerson));
		setFdBeginTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeginTime")), fdBeginTime));
		setFdEndTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEndTime")), fdEndTime));
		setFdYxName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYxName")), fdYxName));
		setFdYxContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYxContent")), fdYxContent));
		setFdYxZj(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYxZj")), fdYxZj));
		setFdYxBm(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYxBm")), fdYxBm));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdReportTime",StringUtils.toString(fdReportTime, eiMetadata.getMeta("fdReportTime")));	
			map.put("fdReportPerson",StringUtils.toString(fdReportPerson, eiMetadata.getMeta("fdReportPerson")));	
			map.put("fdBeginTime",StringUtils.toString(fdBeginTime, eiMetadata.getMeta("fdBeginTime")));	
			map.put("fdEndTime",StringUtils.toString(fdEndTime, eiMetadata.getMeta("fdEndTime")));	
			map.put("fdYxName",StringUtils.toString(fdYxName, eiMetadata.getMeta("fdYxName")));	
			map.put("fdYxContent",StringUtils.toString(fdYxContent, eiMetadata.getMeta("fdYxContent")));	
			map.put("fdYxZj",StringUtils.toString(fdYxZj, eiMetadata.getMeta("fdYxZj")));	
			map.put("fdYxBm",StringUtils.toString(fdYxBm, eiMetadata.getMeta("fdYxBm")));	
			
		return map;
	
	}
}